font class More...
Public Member Functions | |
CFontDesc (UTF8StringPtr name=0, const CCoord &size=0, const int32_t style=0) | |
CFontDesc (const CFontDesc &font) | |
~CFontDesc () | |
virtual IPlatformFont * | getPlatformFont () |
virtual IFontPainter * | getFontPainter () |
virtual CFontDesc & | operator= (const CFontDesc &) |
virtual bool | operator== (const CFontDesc &) const |
Size, Name and Style Methods | |
UTF8StringPtr | getName () const |
get the name of the font | |
const CCoord & | getSize () const |
get the height of the font | |
const int32_t & | getStyle () const |
get the style of the font | |
virtual void | setName (UTF8StringPtr newName) |
set the name of the font | |
virtual void | setSize (CCoord newSize) |
set the height of the font | |
virtual void | setStyle (int32_t newStyle) |
set the style of the font | |
Reference Counting Methods | |
virtual void | forget () |
decrease refcount and delete object if refcount == 0 | |
virtual void | remember () |
increase refcount | |
virtual int32_t | getNbReference () const |
get refcount | |
Message Methods | |
virtual CMessageResult | notify (CBaseObject *sender, IdStringPtr message) |
Static Public Member Functions | |
static void | cleanup () |
Protected Member Functions | |
virtual void | freePlatformFont () |
Protected Attributes | |
IPlatformFont * | platformFont |
UTF8StringBuffer | name |
CCoord | size |
int32_t | style |
font class
The CFontDesc class replaces the old font handling. You have now the possibilty to use whatever font you like as long as it is available on the system. You should cache your own CFontDesc as this speeds up drawing on some systems.
CFontDesc | ( | UTF8StringPtr | name = 0 , |
|
const CCoord & | size = 0 , |
|||
const int32_t | style = 0 | |||
) |
~CFontDesc | ( | ) |
void cleanup | ( | ) | [static] |
virtual void forget | ( | ) | [inline, virtual, inherited] |
decrease refcount and delete object if refcount == 0
void freePlatformFont | ( | ) | [protected, virtual] |
IFontPainter * getFontPainter | ( | ) | [virtual] |
UTF8StringPtr getName | ( | ) | const [inline] |
get the name of the font
virtual int32_t getNbReference | ( | ) | const [inline, virtual, inherited] |
get refcount
IPlatformFont * getPlatformFont | ( | ) | [virtual] |
const CCoord& getSize | ( | ) | const [inline] |
get the height of the font
const int32_t& getStyle | ( | ) | const [inline] |
get the style of the font
virtual CMessageResult notify | ( | CBaseObject * | sender, | |
IdStringPtr | message | |||
) | [inline, virtual, inherited] |
bool operator== | ( | const CFontDesc & | f | ) | const [virtual] |
virtual void remember | ( | ) | [inline, virtual, inherited] |
increase refcount
void setName | ( | UTF8StringPtr | newName | ) | [virtual] |
set the name of the font
void setSize | ( | CCoord | newSize | ) | [virtual] |
set the height of the font
void setStyle | ( | int32_t | newStyle | ) | [virtual] |
set the style of the font
UTF8StringBuffer name [protected] |
IPlatformFont* platformFont [protected] |
int32_t style [protected] |